
<template>
    <div @click="sendParams">点击emit</div>
</template>

<script>
export default {
  name: 'Son',
  methods: {
    sendParams () {
      this.$emit('getName', '子组件leyo')
    }
  }
}
</script>
